Merge from trunk.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 Apr 2012 16:45:13 +0000 (09:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 Apr 2012 16:45:13 +0000 (09:45 -0700)
1  2 
ChangeLog
lib-src/ChangeLog
lwlib/ChangeLog
msdos/ChangeLog
oldXMenu/ChangeLog
src/ChangeLog

diff --cc ChangeLog
index 186331990081c494ab900b10a4f2761f3a5c1423,a7da9e1ad5bd593bb1922cff5300af773f181e40..95baf9c52947d6cae0f216217f265760eb50b8ad
+++ b/ChangeLog
@@@ -1,21 -1,3 +1,21 @@@
- 2012-04-17  Paul Eggert  <eggert@cs.ucla.edu>
++2012-04-18  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      configure: new option --enable-gcc-warnings (Bug#11207)
 +      I have been using this change for many months in my private copy
 +      of Emacs, and have used it to find several bugs.  It's mature
 +      enough to publish now.
 +      * Makefile.in (GNULIB_MODULES): Add warnings, manywarnings.
 +      * configure.in: Support --enable-gcc-warnings, in the style of
 +      other GNU packages such as coreutils.
 +      (C_WARNINGS_SWITCH): Remove, replacing with...
 +      (WARN_CFLAGS, GNULIB_WARN_CFLAGS): New variable.
 +      (PKG_CHECK_MODULES, C_SWITCH_X_SITE): Use -isystem rather than -I,
 +      when including system files with GCC.
 +      * etc/NEWS: Mention --enable-gcc-warnings.
 +      * INSTALL (DETAILED BUILDING AND INSTALLATION): Likewise.
 +      * lib/Makefile.am (AM_CFLAGS): New macro.
 +      * m4/manywarnings.m4, m4/warnings.m4: New files, from gnulib.
 +
  2012-04-17  Dmitry Antipov  <dmantipov@yandex.ru>
  
        * configure.in (AC_CHECK_FUNCS):
index 43b86695f2e9fa32f96b43655a7c9e49d5d56469,5b880d028b8d93793e843f8fc1ea933e948f79fa..a43c14b748af42eded8bb97a0dbc5e04f2338995
@@@ -1,10 -1,3 +1,10 @@@
- 2012-04-17  Paul Eggert  <eggert@cs.ucla.edu>
++2012-04-18  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      configure: new option --enable-gcc-warnings (Bug#11207)
 +      * Makefile.in (C_WARNINGS_SWITCH): Remove.
 +      (WARN_CFLAGS, WERROR_CFLAGS): New macros.
 +      (BASE_CFLAGS): Use new macros rather than old.
 +
  2012-04-16  Paul Eggert  <eggert@cs.ucla.edu>
  
        Assume less-ancient POSIX support.
diff --cc lwlib/ChangeLog
index f6ffedeafda38a4f7a2aa019927cd0fb25559a14,8ac9e6994ab5fc92503cdcfe890dec4e6b1fe637..5451fa380013ccb3963a6df6ef0980364ddea715
@@@ -1,10 -1,3 +1,10 @@@
- 2012-04-17  Paul Eggert  <eggert@cs.ucla.edu>
++2012-04-18  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      configure: new option --enable-gcc-warnings (Bug#11207)
 +      * Makefile.in (C_WARNINGS_SWITCH): Remove.
 +      (WARN_CFLAGS, WERROR_CFLAGS): New macros.
 +      (ALL_CFLAGS): Use new macros rather than old.
 +
  2012-04-11  Glenn Morris  <rgm@gnu.org>
  
        * Makefile.in (C_SWITCH_X_SYSTEM): Remove.
diff --cc msdos/ChangeLog
index c821c7266664295b3c7315ee05d506818d7c2515,34ea533a260f494bd42a99e1f2f85bc2e263870f..0f867518a14970ddd2e2aad1351226f71663ef19
@@@ -1,9 -1,3 +1,9 @@@
- 2012-04-17  Paul Eggert  <eggert@cs.ucla.edu>
++2012-04-18  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      configure: new option --enable-gcc-warnings (Bug#11207)
 +      * sed1v2.inp, sed3v2.inp, sedlibmk.inp: GNULIB_WARN_CFLAGS,
 +      WARN_CFLAGS, and WERROR_CFLAGS replace C_WARNINGS_SWITCH.
 +
  2012-04-11  Glenn Morris  <rgm@gnu.org>
  
        * sedlibmk.inp, sed1v2.inp: GNUSTEP_CFLAGS replaces C_SWITCH_X_SYSTEM.
index 243899e011d9385f5c302ed5992269841f700c92,5b86ccec21e8798696e2d9518a799f24d45a09a5..b1eb200416b1bfa0d5b22175f4605c59763c89ee
@@@ -1,10 -1,3 +1,10 @@@
- 2012-04-17  Paul Eggert  <eggert@cs.ucla.edu>
++2012-04-18  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      configure: new option --enable-gcc-warnings (Bug#11207)
 +      * Makefile.in (C_WARNINGS_SWITCH): Remove.
 +      (WARN_CFLAGS, WERROR_CFLAGS): New macros.
 +      (ALL_CFLAGS): Use new macros rather than old.
 +
  2012-04-11  Glenn Morris  <rgm@gnu.org>
  
        * Makefile.in (C_SWITCH_X_SYSTEM): Remove.
diff --cc src/ChangeLog
index 46e1a9668f067b961817aad0f382e240885ee0e9,c3b63ab5108a4a8cecf80e12f602a2a68ab5c6d8..54ba69be9ec8fc3a6c93e0ac61a73bf83be50e35
@@@ -1,16 -1,3 +1,16 @@@
- 2012-04-17  Paul Eggert  <eggert@cs.ucla.edu>
++2012-04-18  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      configure: new option --enable-gcc-warnings (Bug#11207)
 +      * Makefile.in (C_WARNINGS_SWITCH): Remove.
 +      (WARN_CFLAGS, WERROR_CFLAGS): New macros.
 +      (ALL_CFLAGS): Use new macros rather than old.
 +      * process.c: Ignore -Wstrict-overflow to work around GCC bug 52904.
 +      * regex.c: Ignore -Wstrict-overflow.  If !emacs, also ignore
 +      -Wunused-but-set-variable, -Wunused-function, -Wunused-macros,
 +      -Wunused-result, -Wunused-variable.  This should go away once
 +      the Emacs and Gnulib regex code is merged.
 +      (xmalloc, xrealloc): Now static.
 +
  2012-04-17  Paul Eggert  <eggert@cs.ucla.edu>
  
        * dired.c (Fsystem_groups): Remove unused local.